package com.momoauth.api_client.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

@Data
@DS("momo_auth")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Role {
    @TableId(value = "roleId",type = IdType.ASSIGN_ID)
    private Long roleId;
    private String roleName; //角色名称
    private String description; //描述
    @TableField(fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    private String createTime; //创建时间
    @Version
    @TableField(fill = FieldFill.INSERT)
    private Long version; //版本号
    @TableField(fill = FieldFill.UPDATE)
    private String updateTime; //修改时间
    private Integer status; //状态 1.启用 2.禁用
    @TableField(updateStrategy = FieldStrategy.NEVER)
    private Integer isDelete; //是否删除 1.非删除 2.已删除
    @TableField(exist = false)
    private Long roleUseNum; //使用数量
}
